package com.leyou.exception.vo;

import com.leyou.exception.LyException;
import lombok.Data;



import java.util.Date;
@Data
public class ExceptionResult {
    private int status;
    private String message;
    private String timer;

    public ExceptionResult(LyException e) {
        status = e.getStatus();
        message = e.getMessage();
        timer = new Date().toLocaleString();
    }
}
